package com.example.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import java.io.Serializable;

public class TeamDetalActivity extends AppCompatActivity {
    TextView nmd;
    ImageView wsm;
    private Team team;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_team_detal);
        team = (Team) (getIntent().getSerializableExtra("team"));

        initView();
    }

    private void initView() {
        nmd = findViewById(R.id.aaaa);
        nmd.setText(team.getName());
        wsm = findViewById(R.id.picid);
        wsm.setImageResource(getResources().getIdentifier(team.getPic(),"mipmap",getPackageName()));
    }
}
